package com.rentplant.service;

import com.alibaba.fastjson.JSONObject;
import com.rentplant.Pojo.helpinfo;
import com.rentplant.Pojo.helpinfoanduser;

import java.util.List;

public interface helpInfoService {
    //    提交求租信息
    public  boolean addHelpInfo(JSONObject helpinfo);

    //    查询最热求租信息
    public List<helpinfoanduser> helpInfoByHot();

    //查询最新信息
    public  List<helpinfoanduser> helpInfoByTime();

    //按照id查找求租信息
    public List<helpinfoanduser> helpInfoById(JSONObject helpinfo);

    //求租信息浏览自增
    public boolean addInfoSee(JSONObject helpinfo);

    //查询用户发布的求租信息
    public List<helpinfo>showHelpInfo(JSONObject helpinfo);

    //        查询全部求租信息并分页
    public List<helpinfo> allHelpInfo(JSONObject pageinfo);

    public List<helpinfo> allHelpInfos();

    //    修改求租信息
    public boolean updateHelpInfo(JSONObject helpinfo);

    //    条件查找
    public List<helpinfo> searchHelp(JSONObject searchinfo);

    //    条件查找
    public List<helpinfo> searchHelps(JSONObject searchinfo);
}
